package com.iot.iotplus.mqtt;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Component
public class MqttEntity {
    /**
     * 用户名
     */
    @Value("${com.mqtt.username}")
    private String username;
    /**
     * 密码
     */
    @Value("${com.mqtt.password}")
    private String password;
    /**
     * 连接地址
     */
    @Value("${com.mqtt.hostUrl}")
    private String hostUrl;
    /**
     * 客户Id
     */
    @Value("${com.mqtt.clientId}")
    private String clientId;
    /**
     * 默认连接话题
     */
    @Value("${com.mqtt.defaultTopic}")
    private String defaultTopic;
}
